/*****************************************************************
myd engine v0.1

File: myd_indexbuffer.cpp
Created: 20/08/09
*****************************************************************/

#include "myd_indexbuffer.h"

using namespace myd;

Indexbuffer::Indexbuffer(unsigned int uiIndexCount)
:
indicesVector(uiIndexCount)
{
}

Indexbuffer::~Indexbuffer(void)
{
}

bool Indexbuffer::create(IDirect3DDevice9* D3Ddevice)
{
	/*HRESULT hr = D3Ddevice->CreateIndexBuffer(sizeof(aCubeIndices),
											  D3DUSAGE_WRITEONLY,
											  D3DFMT_INDEX16,
											  D3DPOOL_MANAGED,
											  &wn_IBO,
											  NULL);
	return (hr == D3D_OK);*/
	return 0;
}

/*void Indexbuffer::setvertex(uint index, const vertex &v)
{
}

const Indexbuffer::vertex & getvertex(uint index) const
{
	return indicesVector[index];
}*/

unsigned int Indexbuffer::getId() const
{
	return uiId;
}

size_t Indexbuffer::getIndexCount () const
{
	return indicesVector.size();
}